<script setup lang="ts" name="App">
  import { useTheme } from '/@/hooks/index';
  import { useLoadingStore } from './store';

  const { isDark } = useTheme();
  // store中的loading状态，
  const loadingStore = useLoadingStore();
</script>
<template>
  <van-config-provider theme="light">
    <VarLoading size="large" :loading="loadingStore.loading">
      <RouterView />
    </VarLoading>
  </van-config-provider>
</template>
<style lang="scss">
  body {
    background-color: $body;
  }
</style>
